feat(chat): 채팅방 채팅 메세지 전달 로직 디버깅 (#78)#167
Conversation
|
Caution Review failedThe pull request is closed. Walkthrough채팅 전송 흐름이 변경되었습니다. 컨트롤러의 엔드포인트가 /chat/send 로 바뀌고 roomId를 요청 본문에서 읽습니다. Redis 게시 메서드는 예외를 호출자에게 전파하며 디버깅 출력이 추가되었습니다. Redis 리스너는 chat/* 토픽을 구독하고, 수신 메시지를 /chat/{id}로 브로드캐스트합니다. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Client
participant C as ChatMessagingController
participant P as ChatRedisPublisher
participant R as Redis (pub/sub)
participant S as RedisSubscriber
participant WS as WebSocket Broker
Client->>C: /app/chat/send (ChatSendRequest{roomId, content})
C->>C: 멤버십 체크, 메시지 저장
C->>WS: /topic/chat/{roomId} 즉시 브로드캐스트
C->>P: publishToRoom("chat.{roomId}", payload)
P->>R: convertAndSend("chat.{roomId}", json)
R-->>S: 메시지 전달 (chat/*)
S->>WS: /chat/{roomId}로 브로드캐스트
note over WS,Client: 구독 클라이언트에게 전달
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. 📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (4)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit